Vue.component("greeting",{
    template:'<p>{{name}}:大家好<button v-on:click="changename">改名</button></p>',
    data:function () {
        return{
            name:"崔蓉蓉"
        }
    },
    methods:{
        changename:function () {
            this.name="李琦";
        }
    }
})

new Vue({
    el:"#vue-app-one",
});
new Vue({
    el:"#vue-app-two",
});